/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Invoice Root Group Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19399 (C-0-T13953-A13954-A19397-A19398-A19399-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActInvoiceRootGroupCode()
 * @model extendedMetaData="name='ActInvoiceRootGroupCode'"
 * @generated
 */
public enum ActInvoiceRootGroupCode implements Enumerator {
	/**
	 * The '<em><b>RXCINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RXCINV_VALUE
	 * @generated
	 * @ordered
	 */
	RXCINV(0, "RXCINV", "RXCINV"),

	/**
	 * The '<em><b>RXDINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RXDINV_VALUE
	 * @generated
	 * @ordered
	 */
	RXDINV(1, "RXDINV", "RXDINV"),

	/**
	 * The '<em><b>CPINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CPINV_VALUE
	 * @generated
	 * @ordered
	 */
	CPINV(2, "CPINV", "CPINV"),

	/**
	 * The '<em><b>CSPINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CSPINV_VALUE
	 * @generated
	 * @ordered
	 */
	CSPINV(3, "CSPINV", "CSPINV"),

	/**
	 * The '<em><b>CSINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CSINV_VALUE
	 * @generated
	 * @ordered
	 */
	CSINV(4, "CSINV", "CSINV"),

	/**
	 * The '<em><b>FININV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FININV_VALUE
	 * @generated
	 * @ordered
	 */
	FININV(5, "FININV", "FININV"),

	/**
	 * The '<em><b>OHSINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OHSINV_VALUE
	 * @generated
	 * @ordered
	 */
	OHSINV(6, "OHSINV", "OHSINV"),

	/**
	 * The '<em><b>PAINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PAINV_VALUE
	 * @generated
	 * @ordered
	 */
	PAINV(7, "PAINV", "PAINV"),

	/**
	 * The '<em><b>SBFINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SBFINV_VALUE
	 * @generated
	 * @ordered
	 */
	SBFINV(8, "SBFINV", "SBFINV"),

	/**
	 * The '<em><b>VRXINV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VRXINV_VALUE
	 * @generated
	 * @ordered
	 */
	VRXINV(9, "VRXINV", "VRXINV");

	/**
	 * The '<em><b>RXCINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RXCINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RXCINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RXCINV_VALUE = 0;

	/**
	 * The '<em><b>RXDINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RXDINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RXDINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RXDINV_VALUE = 1;

	/**
	 * The '<em><b>CPINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CPINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CPINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CPINV_VALUE = 2;

	/**
	 * The '<em><b>CSPINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CSPINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CSPINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CSPINV_VALUE = 3;

	/**
	 * The '<em><b>CSINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CSINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CSINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CSINV_VALUE = 4;

	/**
	 * The '<em><b>FININV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FININV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FININV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FININV_VALUE = 5;

	/**
	 * The '<em><b>OHSINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OHSINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OHSINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OHSINV_VALUE = 6;

	/**
	 * The '<em><b>PAINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PAINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PAINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PAINV_VALUE = 7;

	/**
	 * The '<em><b>SBFINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SBFINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SBFINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SBFINV_VALUE = 8;

	/**
	 * The '<em><b>VRXINV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>VRXINV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VRXINV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int VRXINV_VALUE = 9;

	/**
	 * An array of all the '<em><b>Act Invoice Root Group Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActInvoiceRootGroupCode[] VALUES_ARRAY =
		new ActInvoiceRootGroupCode[] {
			RXCINV,
			RXDINV,
			CPINV,
			CSPINV,
			CSINV,
			FININV,
			OHSINV,
			PAINV,
			SBFINV,
			VRXINV,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Invoice Root Group Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActInvoiceRootGroupCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Invoice Root Group Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceRootGroupCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceRootGroupCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Root Group Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceRootGroupCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceRootGroupCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Root Group Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceRootGroupCode get(int value) {
		switch (value) {
			case RXCINV_VALUE: return RXCINV;
			case RXDINV_VALUE: return RXDINV;
			case CPINV_VALUE: return CPINV;
			case CSPINV_VALUE: return CSPINV;
			case CSINV_VALUE: return CSINV;
			case FININV_VALUE: return FININV;
			case OHSINV_VALUE: return OHSINV;
			case PAINV_VALUE: return PAINV;
			case SBFINV_VALUE: return SBFINV;
			case VRXINV_VALUE: return VRXINV;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActInvoiceRootGroupCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActInvoiceRootGroupCode
